
<div class="layui-tab">
<ul class="layui-tab-title">
    {% for key in jsonconf.keys() %}
         {% if key == '__sys__' %}
         <li class="layui-this">默认配置</li>
        {% else %}
        <li>{{ key }}</li>
        {% endif %}
    {% endfor %}
</ul>
<div class="layui-tab-content">
    {% for key in jsonconf.keys() %}
        {% if key == '__sys__' %}
            <div class="layui-tab-item layui-show">
            {% for k in jsonconf[key].keys() %}
                <div class="layui-row">
                    <div class="layui-col-md11">
                      <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置变量
                                  </div>
                                  <input type="text"  name="key[]" lay-verify="required" lay-reqtext="变量名必须填写，请填写英文（数字不能开头）" placeholder="请输入" class="layui-input" value="{{ jsonconf['__sys__'][k]['key'] }}">
                                </div>
                            </div>
                          </div>

                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置名称
                                  </div>
                                  <input type="text" value="{{ jsonconf['__sys__'][k]['name'] }}" name="name[]" placeholder="请输入" class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            </div>

                            <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置说明
                                  </div>
                                  <input type="text"  name="des[]" lay-verify="required" placeholder="请输入" class="layui-input" value="{{ jsonconf['__sys__'][k]['des'] }}">
                                </div>
                            </div>
                            </div>
                            <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置值
                                  </div>
                                  <input type="text"  name="val[]" placeholder="请输入" class="layui-input" value="{{ jsonconf['__sys__'][k]['val'] }}">
                                </div>
                            </div>
                            </div>
                    </div>
            <div class="layui-col-md1">
            <div class="layui-inline" style="left: 5%; top: inherit ">
            <a href="javascript:;" class="layui-btn layui-btn-danger del_item">
                <i class="layui-icon layui-icon-delete"></i>删</a>
            </div>
            </div>
                </div>
            {% endfor %}
            </div>
        {% else %}
            <div class="layui-tab-item">
            {% for k in jsonconf[key].keys() %}
            <div class="layui-row">
                    <div class="layui-col-md11">
                      <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置变量
                                  </div>
                                  <input type="text"  name="key[]" lay-verify="required" lay-reqtext="变量名必须填写，请填写英文（数字不能开头）" placeholder="请输入" class="layui-input" value="{{ jsonconf[key][k]['key'] }}">
                                </div>
                            </div>
                          </div>

                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置名称
                                  </div>
                                  <input type="text" value="{{ jsonconf[key][k]['name'] }}" name="name[]" placeholder="请输入" class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            </div>

                            <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置说明
                                  </div>
                                  <input type="text"  name="des[]" lay-verify="required" placeholder="请输入" class="layui-input" value="{{ jsonconf[key][k]['des'] }}">
                                </div>
                            </div>
                            </div>
                            <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <div class="layui-input-group">
                                  <div class="layui-input-split layui-input-prefix">
                                    配置值
                                  </div>
                                  <input type="text"  name="val[]" placeholder="请输入" class="layui-input" value="{{ jsonconf[key][k]['val'] }}">
                                </div>
                            </div>
                            </div>
                    </div>
            <div class="layui-col-md1">
            <div class="layui-inline" style="left: 5%; top: inherit ">
            <a href="javascript:;" class="layui-btn layui-btn-danger del_item">
                <i class="layui-icon layui-icon-delete"></i>删</a>
            </div>
            </div>
            </div>

            {% endfor %}
            </div>
        {% endif %}
    {% endfor %}
  </div>
</div>